import { AES, enc } from 'crypto-js'

const KEY = 'fdslf80980KJLjofsd&%$*fdlsfljk'

export function enCodeApi(msg: string): string {
    return AES.encrypt(msg, KEY).toString()
}

export function deCodeApi(msg: string): string {
    return AES.decrypt(msg, KEY).toString(enc.Utf8)
}